package com.changfang.gold_man.mapper;

import com.changfang.gold_man.entity.Car;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CarMapper {
    public List<Car> findAll();
    public Car findId(Integer car_id);
    public List<Car> findByUid(String user_id);
    Car findByCarId(Integer car_id);
    public void register(String user_id,String car_type,String car_address,String car_img,String car_statu,Float car_gold);
    public void delete(Integer car_id);
    public void updateStatu(Integer car_id,String car_statu);
    void updatePerson(Integer car_id,String person_id);
    List<Car> findPerson(String person_id);

}
